package com.dcrzl.gazgmh.common.entity.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.dcrzl.gazgmh.common.utils.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 角色
 *
 * @author dcrzl
 * @email 1728795786@qq.com
 * @date 2023-04-24 22:02:14
 */
@Data
@TableName("t_sys_role")
@Accessors(chain = true)
public class SysRole extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    private String roleName;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
    /**
     * 创建者ID
     */
    @TableField(value = "create_user_id")
    private Long createUserId;
    /**
     *
     */
    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private List<Long> menuIdList;

}
